<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<style>
    #div{
        width: 100px;
        height: 100px;
        background-color: red;
        transition: width 0.7s ease 0s ,height 0.7s ease 1s;
    }
    #div:hover{
        background-color: green;
        width: 1000px;
        height: 1000px;
    }

</style>
<body>
    <div id="div">

    </div>
</body>
</html>